
import { computed, ref, reactive } from 'vue';
import { Pagination } from '@/types/global';
import type { TableColumnData, TableData } from '@arco-design/web-vue/es/table/interface';

const fmodel:any = {
    organizationId: '',
    email: '',
    cellphone: '',
    fullName: ''
};
export const formModel = ref(fmodel);

export const pagination: Pagination = reactive({
    current: 1,
    pageSize: 20,
});
export const columns = computed<TableColumnData[]>(() => [
    {
        title: '机构编号',
        dataIndex: 'organizationId',
    },
    {
        title: '人员编号',
        dataIndex: 'personId',
    },
    {
        title: '邮箱',
        dataIndex: 'email',
    },
    {
        title: '手机',
        dataIndex: 'cellphone',
    },
    {
        title: '姓名',
        dataIndex: 'fullName',
    },
    {
        title: '是否可用',
        dataIndex: 'enabled',
        slotName: 'enable',
    },
    {
        title: '操作',
        slotName: 'operations',
        width: 110,
        align: 'center',
    },
]);
